package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dtos.UserSearchDto;
import com.heima.model.search.vos.SearchArticleVo;

import java.io.IOException;

/**
 * @author DiXiaoNie
 * @since 2023/1/2 11:35
 */

public interface SearchService {
    /**
     * 搜索
     *
     * @param dto dto
     * @return {@link ResponseResult }
     * @author DiXiaoNie
     * @date 2023/01/02
     */
    ResponseResult search(UserSearchDto dto) throws IOException;

    /**
     * 添加文章到es中
     *
     * @param vo 签证官
     * @author DiXiaoNie
     * @date 2023/01/02
     */
    void addArticleToEs(SearchArticleVo vo);
}
